//
//  CNShareView.h
//  CNShareView
//
//  Created by 孟瑞瑞 on 2018/7/15.
//  Copyright © 2018年 CSDN. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CNShareItem.h"

@class CNShareView;

@protocol CNShareViewDelegate <NSObject>
@optional
- (void)shareWithType:(CNShareType)shareType;
- (void)clickSyncBlin:(UIButton *)syncBlinBtn AndView:(CNShareView *)view;
@end

@interface CNShareView : UIView

@property(nonatomic,weak)id<CNShareViewDelegate>delegate;
@property(nonatomic,copy)NSArray<NSArray<CNShareItem*>*> *shareInfos;

@property (nonatomic, strong) UIButton *syncBlinBtn;

- (void)showShareView;

-(void)hideShareView;

- (void)updateImagePicker:(ThemeImagePicker *)imagePicker ForShareType:(CNShareType)shareType;
- (void)updateTitle:(NSString *)title ForShareType:(CNShareType)shareType;
- (void)updateTitleColor:(UIColor *)titleColor ForShareType:(CNShareType)shareType;

@end
